package com.ssy.lingxi.order.model.constant;

/**
 * 运费方式枚举
 * @author 万宁
 * @version 2.0.0
 * @date 2021-09-10
 */
public enum OrderFreightTypeEnum {
    /**
     * 无运费 - 0
     */
    NONE(0, "无运费"),

    /**
     * 卖家承担（默认） - 1
     */
    VENDOR(1, "卖家承担"),

    /**
     * 买家承担 - 2
     */
    BUYER(2, "买家承担");

    OrderFreightTypeEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    private Integer code;
    private String name;

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
